<?php


namespace app\common\model\search;


trait NodeSearch
{
    public function searchNodeIdAttr($query, $value, $data)
    {

        return $query->where('node_id', '=', (int)$value);
    }

    public function searchDeptIdAttr($query, $value, $data)
    {
        return $query->where('apply_dept.dept_id', '=', (int)$value);
    }


}